package org.Thread;

public class Thread_Demo4  {
    public static void main(String[] args) throws InterruptedException {
        //线程的礼让
        //public static void yield()
        //线程的插入
        //public final void join
        MyThread_Demo4 t1 = new MyThread_Demo4();
        MyThread_Demo4 t2 = new MyThread_Demo4();

        t1.setName("飞机");
        t2.setName("坦克");
        t1.start();
        t2.start();


    }

}
